// dlg.txt

//	mark_quest_dest(zone,x,y,layer,quest);
//	cancel_out_fight(0,short kill_enc)
//	make_outdoor_enc(short x,short y,short which_enc);
//	set_out_fight_field(short which_field);

begintalkscript;

variables;

short this_sec = 61;

begintalknode;
	tag = 1;
	condition = get_sdf(100 + this_sec,1) == 0;
	text1 = "You are almost to the Ruska Pass, the narrow valley that is the only route between the northern and southern halves of the Kranas Woods. (That you know of, anyway. The Rokaj has many secrets.)";
	text2 = "It is a breathtakingly beautiful walk. The mountains, and forest, the enormous waterfalls far above you. In a happier time, people traveled here from all over the Ro (and Haven).";
	text3 = "Now, the dark energy and menace is hanging in the air. The woods are waiting for you.";
	code =
		sf(100 + this_sec,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(100 + this_sec,2) == 0;
	text1 = "Someone got off of a barge and hurriedly dumped a bunch of supplies here. Probably smugglers in the process of getting caught. You find a bunch of portable trade goods.";
	code =
		change_coins(130,TRUE);
		sf(100 + this_sec,2,1);
		make_outdoor_enc(93,293,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(100 + this_sec,3) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(100 + this_sec,4) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(100 + this_sec,5) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(100 + this_sec,6) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(100 + this_sec,7) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(100 + this_sec,8) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(100 + this_sec,9) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(100 + this_sec,10) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(100 + this_sec,11) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(100 + this_sec,12) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "As the battle ends, you look for the Erud. They are already leaving. As they walk off, they compare notes and chat excitedly about what they learned.";
	text2 = "You poke around in the hole the beasts were hiding in. It smells very bad. You don't find much. Just some scraps of fur and bits of bone, and a dusty piece of amber.";
	code =
		change_crafting(0,0,1,0,0);
	break;

begintalknode;
	tag = 14;
	condition = 1;
	text1 = "There is a clan of the Kranas on this land. They make their living by a combination of farming, foraging, and mining. They greet you, though they plainly aren't excited about it.";
	text2 = "You soon find out why. They're all sick. Recently, they all came down with some sort of a constant low-level illness. Like a cold, but forever. They don't have energy for socializing, so you left them alone.";
	text3 = "They are able to speak with you for a bit. They have been ill for a while, but they recently recovered. Your purging of Mistglen probably helped, though they don't know about it. Eventually, you just leave them alone.";
	code =
		if (gf(20,11) == 0)
			rs(3);
			else rs(2);
	break;

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "The clan who tends to this land greets you. You note that they live in a natural stretch of plains. They didn't clear away any forest to build their home and plant their orchard.";
	text2 = "They earn their keep by gathering the unique herbs and flowers that grow in their woods. They are in demand from alchemists in other lands. It's a profitable business, and this clan is doing better than most.";
	text3 = "They are entirely friendly to you and have nothing bad to say about Haven. They invite you for a meal and then wish you a happy journey.";
	text4 = "They greet you, but they are openly cold and hostile. Something has made them very angry. You don't stay long.";
	code =
		if ((gf(18,12) > 0) || (gf(19,12) > 0))
			rs(3);
			else rs(4);
	break;

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "At the west end of this rocky plain, you find a small group of Ro in robes. They are gathered around a small hole in the base of the cliff wall. They wave you forward.";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "Approach.";
	text1 = "When you get close, one of them runs up and starts talking quickly. _Warriors! Glad you are here! We are of the Erudico, and we have a chance for you to win glory!_ She doesn't seem to realize that you are from Haven.";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Leave.";
	text1 = "They direct their attention back to their hole.";
	action = END_TALK;

begintalknode;
	state = 11;
	nextstate = 12;
	condition = 1;
	question = "_What?_";
	text1 = "_In that hole. Beasts. We tracked them from Mistglen. Horrors of a dead grove. We want to study them. We want to see how they react. Will you help us corner them?_";

begintalknode;
	state = 12;
	nextstate = 13;
	condition = 1;
	question = "_All right._";
	text1 = "The moment you give your agreement, she shouts, _It's a yea! Time for a scar and a story!_ As she runs off, she says, _You might want to get ready._";

begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_No!_";
	text1 = "The Erud shakes her head. _A waste of a good chance for a scar and a story. Still, your loss._ She leaves.";
	action = END_TALK;

begintalknode;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "_For what?_";
	text1 = "Before you can react, the Erud take the opportunity. One of them blows a horn. Monsters pour out of the hole. The Erud nimbly step out of the way, allowing them to charge straight for you. As combat begins, they watch carefully and take notes.";
	text2 = "Happily, two of them are kind enough to help you. Probably not kindness, though. Just a chance to observe more closely.";
	action = END_TALK;
	code =
		cancel_out_fight(1,1);
		make_outdoor_enc(59,331,0);
	break;
	
//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				